onBatteryStateChanged

public Unit onBatteryStateChanged(IDeviceCompat sender, Integer newState)

Called when the Nix device has updated its battery level measurement.

Parameters

sender

Device instance that has invoked this call

newState

New battery level (0 to 100)